
.common-w-box {
  width: 1300px;
  margin: 0 auto;
}

.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }

  & .peg {
    box-shadow:
            0 0 10px var(--el-color-primary),
            0 0 5px var(--el-color-primary) !important;
  }

  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}

// 全局链接样式
.a-link {
  color: var(--el-color-primary);
  cursor: pointer;
}

.common-w-box {
  width: 1300px;
  margin: 0 auto;
}

a {
  color: #333;
  text-decoration: none;

  &:hover {
    color: var(--el-color-primary);
  }
}

.common-tabs {
  span {
    display: inline-block;
    padding: 0 24px;
    margin-right: 12px;
    font-size: 14px;
    line-height: 34px;
    color: #021429;
    cursor: pointer;
    border-radius: 50%;

    &.on {
      color: #fff;
      background: #3AACE3;
      border-radius: 24px;
    }
  }
}

.common-banner {
  position: relative;

  img {
    display: block;
    width: 100%;
  }

  .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    .txt-c {
      .t1 {
        margin-top: 60px;
        font-size: 30px;
        font-weight: 600;
        color: #21275F;
        text-align: center;
      }

      .des {
        width: 850px;
        margin-top: 16px;
        font-size: 18px;
        font-weight: 400;
        line-height: 24px;
        color: #040724;
      }

      .search-c {
        width: 700px;
        margin: 0 auto;
        margin-top: 30px;

        .search-btn {
          width: 60px;
          color: var(--el-color-primary);
        }
      }
    }

    .txt-c2 {
      .t1 {
        margin-top: 50px;
        font-size: 32px;
        font-weight: 500;
        line-height: 38px;
        color: #021429;
      }

      .des {
        width: 970px;
        font-size: 18px;
        font-weight: 500;
        line-height: 30px;
        color: #8691A3;
      }
    }
  }
}

.lxwm-banner {
  position: relative;

  img {
    display: block;
    width: 100%;
  }

  .content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }
}

.cursor {
  cursor: pointer;
}

.common-custom-table {
  .el-table__header-wrapper {
    thead tr th {
      background: #F0F3F7;
    }
  }
}

.common-slider {
  width: 260px;
  padding: 20px;
  background: #FFF;
  border: 1px solid $borderCol;
  border-radius: 4px;

  .title {
    font-size: 18px;
    font-weight: 500;
    color: #021429;
  }

  .menu-box {
    margin-top: 24px;

    ul, li {
      padding: 0;
      margin: 0;
      list-style: none;
    }

    li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      margin-bottom: 10px;
      font-size: 14px;
      font-weight: 400;
      line-height: 40px;
      color: #4E5969;
      cursor: pointer;

      &.on, &:hover {
        color: #fff;
        background: #3AACE3;
        border-radius: 4px;
      }

      .el-icon--right {
        float: right;
      }
    }
  }
}

.common-lists {
  .item {
    margin: 0 0 20px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;

    .img {
      display: block;
      width: 100%;
      height: 140px;
      background: rgb(217 217 217);
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }

    .txt-c {
      padding: 10px 16px;

      .name {
        overflow : hidden;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        text-overflow: ellipsis;
        white-space: nowrap;

        a:hover {
          color: var(--el-color-primary);
        }
      }

      .tag {
        font-size: 13px;
        font-weight: 400;
        line-height: 16px;
        color: #9BA1A8;
      }

      .des {
        display: -webkit-box;
        min-height: 44px;
        margin-top: 10px;
        overflow : hidden;
        font-size: 14px;
        font-weight: 400;
        line-height: 22px;
        color: #8691A3;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }
  }
}
